home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Bitmap / Include / BmpFacet.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  1.8 KB  |  67 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                BmpFacet.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef BMPFACET_H
  14. #define BMPFACET_H
  15.  
  16. // ----- Framework Includes -----
  17.  
  18. #ifndef FWFACET_H
  19. #include "FWFacet.h"
  20. #endif
  21.  
  22. //========================================================================================
  23. //    •• Forward Declarations
  24. //========================================================================================
  25.  
  26. class XMPFacet;
  27. class XMPShape;
  28. class CBitmapPart;
  29. class FW_CGraphicContext;
  30.  
  31. //========================================================================================
  32. //    •• CBitmapFacet
  33. //========================================================================================
  34.  
  35. class CBitmapFacet : public FW_CFacet
  36. {
  37. //----------------------------------------------------------------------------------------
  38. //    • Initialization/Destruction
  39. //
  40. public:
  41.     CBitmapFacet();
  42.     virtual ~CBitmapFacet();
  43.     void InitBitmapFacet(XMPFacet* xmpFacet, CBitmapPart *bitmapPart);
  44.             
  45. //----------------------------------------------------------------------------------------
  46. //    • Inherited API
  47. //
  48. public:
  49.     virtual void             Draw(FW_CGraphicContext *gc);
  50.     virtual FW_Boolean     DoMouseDown(const FW_CPoint& where,
  51.                                         XMPEventData event);
  52.  
  53. //----------------------------------------------------------------------------------------
  54. //    • New API
  55. //
  56. public:
  57.     FW_CPoint                GetZoomRatio() const;
  58.     
  59. //----------------------------------------------------------------------------------------
  60. //    • Data Members
  61. //
  62. private:
  63.     CBitmapPart        *fBitmapPart;
  64. };
  65.  
  66. #endif
  67.